using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Raster._RasterProperties
{
    /// <summary>
    /// <para>Export Raster World File</para>
    /// <para>Creates a world file based on the pixel size and the location of the upper left pixel.</para>
    /// <para>根据像素大小和左上角像素的位置创建定位文件。</para>
    /// </summary>    
    [DisplayName("Export Raster World File")]
    public class ExportRasterWorldFile : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ExportRasterWorldFile()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_raster_dataset">
        /// <para>Input Raster Dataset</para>
        /// <para>The raster dataset from which you want to create the world file.</para>
        /// <para>要从中创建坐标定位文件的栅格数据集。</para>
        /// </param>
        public ExportRasterWorldFile(object _in_raster_dataset)
        {
            this._in_raster_dataset = _in_raster_dataset;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Export Raster World File";

        public override string CallName => "management.ExportRasterWorldFile";

        public override List<string> AcceptEnvironments => ["scratchWorkspace", "workspace"];

        public override object[] ParameterInfo => [_in_raster_dataset, _out_raster_dataset];

        /// <summary>
        /// <para>Input Raster Dataset</para>
        /// <para>The raster dataset from which you want to create the world file.</para>
        /// <para>要从中创建坐标定位文件的栅格数据集。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Raster Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_raster_dataset { get; set; }


        /// <summary>
        /// <para>Updated Input Raster Dataset</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Input Raster Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_raster_dataset { get; set; }


        public ExportRasterWorldFile SetEnv(object scratchWorkspace = null, object workspace = null)
        {
            base.SetEnv(scratchWorkspace: scratchWorkspace, workspace: workspace);
            return this;
        }

    }

}